package edu.cibertec.service;

import java.util.ArrayList;

import edu.cibertec.bean.BeanExpedienteDTO;
import edu.cibertec.bean.ExpedienteDTO;
import edu.cibertec.fabrica.DAOFactory;
import edu.cibertec.interface1.ExpedienteDAO;
import edu.cibertec.util.ConsultaExpedienteDTO;

public class ExpedienteService implements ExpedienteDAO{

	DAOFactory factoria = DAOFactory.getFactorty(DAOFactory.SQLSERVER);
	ExpedienteDAO dao = factoria.getExpedienteDAO();
	@Override
	public ArrayList<BeanExpedienteDTO> buscarExpediente(String x) {
		// TODO Auto-generated method stub
		return dao.buscarExpediente(x);
	}
	@Override
	public ArrayList<BeanExpedienteDTO> listaExpediente() throws Exception {
		// TODO Auto-generated method stub
		return dao.listaExpediente();
	}
	@Override
	public int registrarExpediente(BeanExpedienteDTO x) throws Exception {
		// TODO Auto-generated method stub
		return dao.registrarExpediente(x);
	}
	@Override
	public int eliminarExpediente(BeanExpedienteDTO x) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int actualizarExpediente(BeanExpedienteDTO x) throws Exception {
		// TODO Auto-generated method stub
		return dao.actualizarExpediente(x);
	}
	@Override
	public BeanExpedienteDTO obtenerExpediente(BeanExpedienteDTO x) throws Exception {
		// TODO Auto-generated method stub
		return dao.obtenerExpediente(x);
	}
	@Override
	public ArrayList<ConsultaExpedienteDTO> listaConsultaExpediente(String nro) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public String TraeIdExp() throws Exception {
		// TODO Auto-generated method stub
		return dao.TraeIdExp();
	}
	


}
